import teams
from players.models import Team
from django.shortcuts import get_object_or_404, render
from django.core.paginator import EmptyPage,PageNotAnInteger,Paginator
from django.shortcuts import get_object_or_404, render

# Create your views here.
def index(request):
    eastteams =Team.objects.filter(east=True)
    westteams =Team.objects.filter(east=False)


   
    context = {
        'eastteams': eastteams,
        'westteams': westteams,
     }
    return render(request, 'teams/teams.html', context)
